import request from "@/utils/request";

//登录
export function get_user_login(data) {
  return request({
    url: "/login",
    method: "POST",
    headers: {},
    data //条件
  });
}
//获取用户信息
export function get_user_info(params) {
  return request({
    url: "/user_login",
    method: "Get",
    headers: {},
    params //筛选条件
  });
}
//更新
export function put_user_login(data) {
  return request({
    url: "/user_login",
    method: "Put",
    headers: {},
    data //跟新数据
  });
}

//注册
export function registr_user_login(data) {
  return request({
    url: "/registration",
    method: "POST",
    headers: {},
    data //条件
  });
}

//忘记密码
export function forget_user_login(data) {
  return request({
    url: "/forgetPwd",
    method: "POST",
    headers: {},
    data //条件
  });
}
